package org.wutao.supernewsapp.web;

/**
 * Created by vhly[FR].
 * <p>
 * Author: vhly[FR]
 * Email: vhly@163.com
 * Date: 16/9/24
 */

import android.graphics.Bitmap;
import android.webkit.WebView;

/**
 * 用于在 WebChromeClient 中接收UI的状态变化
 */
public interface BrowserSupport {

    void onReceivedTitle(WebView webView, String title);

    void onProgressChanged(WebView view, int newProgress);

    void onPageStarted(WebView view, String url, Bitmap favicon);

    void onPageFinished(WebView view, String url);

    /**
     * 实现网址的拦截
     * @param view
     * @param url
     */
    void loadAppUrl(WebView view, String url);
}
